﻿namespace EMall.Query
{
    public abstract class Tree : ITree
    {
    }
    public abstract class Tree<TTree, TKey> : ITree<TTree, TKey>
        where TTree : class, ITree<TTree, TKey>
    {
        public virtual TKey Id { get; set; }
        public virtual TKey ParentId { get; set; }
        public IEnumerable<TTree> Children { get; set; }
    }
}
